import React from "react";
import ReactDOM from "react-dom";

const element = React.createElement(
  "h2",
  {
    className: "title",
    style: { color: "red" },
  },
  React.createElement("span", null, "hellow"),
  " world"
);
ReactDOM.render(element, document.getElementById("root"));

let a = {
  type: "h2",

  props: {
    className: "title",
    style: { color: "red" },
    children: [
      {
        type: "span",
        props: { children: "hellow" },
      },
      " world",
    ],
  },
};
